home *** CD-ROM | disk | FTP | other *** search
- @echo off
- rem add2dos5.bat - Update DOS 5's DOSSHELL.INI with proprietary groups
- rem and programs and DOSHELP.HLP with documentation.
- rem
- rem Copyright 1991 John B. Allison
- rem
- cls
- echo ╔═════════════════════════════════════════════════════════════════════════════╗
- echo ║ ADD2DOS5 installs documentation for "DOS Extensions for Professionals" into ║
- echo ║ a DOS 5 system. If you are not running DOS 5, please CTRL-C out of this ║
- echo ║ batch file now. ║
- echo ║ ║
- echo ║ ADD2DOS5 must be run from the distribution disk. ║
- echo ║ ║
- echo ║ ADD2DOS5 must be run with the Drive and Directory containing the DOS 5 ║
- echo ║ operating system as the first argument. ║
- echo ║ ║
- echo ║ For example: ║
- echo ║ ║
- echo ║ "A:> ADD2DOS5 C:\DOS" ║
- echo ║ ║
- echo ║ Inadditon, the DOS program EDLIN must be available via your PATH. This ║
- echo ║ normally is the case in standard DOS 5 installations. ║
- echo ║ ║
- echo ╚═════════════════════════════════════════════════════════════════════════════╝
- pause
- if not exist xdoshelp.ad1 goto bad1
- if not %1x == x goto lookup
- :bad1
- cls
- echo ╔═════════════════════════════════════════════════════════════════════════════╗
- echo ║ ADD2DOS5 must be run from the distribution disk. ║
- echo ║ ║
- echo ║ ADD2DOS5 must be run with the Drive and Directory containing the DOS 5 ║
- echo ║ operating system as the first argument. ║
- echo ║ ║
- echo ║ For example: ║
- echo ║ ║
- echo ║ "A:> ADD2DOS5 C:\DOS" ║
- echo ║ ║
- echo ╚═════════════════════════════════════════════════════════════════════════════╝
- goto exit
- :lookup
- if not exist %1\DOSHELP.HLP goto bad2
- if exist %1\DOSSHELL.INI goto edit
- :bad2
- cls
- echo ╔═════════════════════════════════════════════════════════════════════════════╗
- echo ║ Unable to locate %1\DOSSHELL.INI ║
- echo ║ or %1\DOSHELP.HLP. ║
- echo ║ ║
- echo ║ Either an incorrect Drive/Directory combination for system files was given ║
- echo ║ for the first argument, or this is not a DOS 5 Operating System. ║
- echo ║ ║
- echo ║ If you are not running DOS 5, this procedure is not necessary and should ║
- echo ║ not be run. ║
- echo ║ ║
- echo ╚═════════════════════════════════════════════════════════════════════════════╝
- goto exit
- :edit
- rem
- rem Update DOSHELP.HLP (/B- no backup; /U- no upper case force)
- rem
- addhelp xdoshelp.ad1 %1 /U-
- addhelp xdoshelp.ad2 %1 /B- /U-
- addhelp xdoshelp.ad3 %1 /B- /U-
- addhelp xdoshelp.ad4 %1 /B- /U-
- addhelp xdoshelp.ad5 %1 /B- /U-
- addhelp xdoshelp.ad6 %1 /B- /U-
- addhelp xdoshelp.ad7 %1 /B- /U-
- addhelp xdoshelp.ad8 %1 /B- /U-
- rem
- rem Add Group and Programs to DOSSHELL.INI using edlin.
- rem
- edlin %1\dosshell.ini <xdosshel.scr
- cls
- echo ╔═════════════════════════════════════════════════════════════════════════════╗
- echo ║ This procedure has added documentation, group, and program information to ║
- echo ║ system files. This action will allow you to execute "DOS Extensions for ║
- echo ║ Professionals" from within DOSSHELL and to realize the full advantages of ║
- echo ║ DOS's integrated help system. ║
- echo ║ ║
- echo ║ You are free to change the order of the DOS Extensions Group within ║
- echo ║ DOSSHELL's Main or of the individual programs within the Group itself. ║
- echo ║ (See your DOS manual - Customizing MS-DOS Shell.) ║
- echo ║ ║
- echo ╚═════════════════════════════════════════════════════════════════════════════╝
- pause
- cls
- echo ╔═════════════════════════════════════════════════════════════════════════════╗
- echo ║ Your orginal system files have been temporarily preserved with the exten- ║
- echo ║ sion .BAK. You will want to rename those changed files to something more ║
- echo ║ permanent in case you should ever need to restore them to their exact ║
- echo ║ condition before this procedure ran. To do so, make the system disk your ║
- echo ║ current drive, change directory (CD) to %1, and rename the files. ║
- echo ║ ║
- echo ║ Changed Files Original Files Suggested New Names ║
- echo ║ ║
- echo ║ dosshell.ini dosshell.bak dosshell.v1 ║
- echo ║ doshelp.hlp doshelp.bak doshelp.v1 ║
- echo ║ ║
- echo ║ e.g. ║
- echo ║ ║
- echo ║ "A:> C:" ║
- echo ║ "C:> CD \DOS" ║
- echo ║ "C:> REN DOSSHELL.BAK DOSSHELL.V1" ║
- echo ║ "C:> REN DOSHELP.BAK DOSHELP.V1" ║
- echo ║ ║
- echo ╚═════════════════════════════════════════════════════════════════════════════╝
- :exit
-